package ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

public class WithdrawCash extends JPanel {
	private JLabel lblWithdrawCashMenu;
	private JLabel lblPleaseSelectAnAmount;
	private JLabel lblXA9;
	private JLabel lblLogo;
	private JButton btn$100;
	private JButton btn$60;
	private JButton btn$40;
	private JButton btn$20;
	private JButton btn$200;
	private JButton btnCancelTransaction;
	

	public WithdrawCash() {
		setBackground(UIManager.getColor("Label.background"));
		setLayout(null);

		lblWithdrawCashMenu = new JLabel("Withdraw cash menu");
		lblWithdrawCashMenu.setBackground(UIManager.getColor("Label.background"));
		lblWithdrawCashMenu.setOpaque(true);
		lblWithdrawCashMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblWithdrawCashMenu.setForeground(Color.BLACK);
		lblWithdrawCashMenu.setFont(new Font("Eurostile", Font.BOLD, 24));
		lblWithdrawCashMenu.setBounds(0, 94, 735, 28);
		add(lblWithdrawCashMenu);

		lblPleaseSelectAnAmount = new JLabel(
				"Please select an amount to withdraw cash");
		lblPleaseSelectAnAmount.setHorizontalAlignment(SwingConstants.CENTER);
		lblPleaseSelectAnAmount.setForeground(Color.BLACK);
		lblPleaseSelectAnAmount.setFont(new Font("Eurostile", Font.PLAIN, 14));
		lblPleaseSelectAnAmount.setBounds(0, 128, 735, 16);
		add(lblPleaseSelectAnAmount);

		btn$200 = new JButton("$ 200");
		btn$200.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$200.setBounds(369, 296, 200, 55);
		add(btn$200);
		
		
		btn$100 = new JButton("$ 100");
		btn$100.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$100.setBounds(156, 233, 200, 55);
		add(btn$100);

		btn$60 = new JButton("$ 60");
		btn$60.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$60.setBounds(369, 233, 200, 55);
		add(btn$60);

		btn$40 = new JButton("$ 40");
		btn$40.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$40.setBounds(369, 170, 200, 55);
		add(btn$40);

		btn$20 = new JButton("$ 20");
		btn$20.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$20.setBounds(156, 170, 200, 55);
		add(btn$20);

		btnCancelTransaction = new JButton("Cancel transaction");
		btnCancelTransaction.setForeground(UIManager.getColor("CheckBox.select"));
		btnCancelTransaction.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 13));
		btnCancelTransaction.setBounds(156, 296, 200, 50);
		add(btnCancelTransaction);

		lblXA9 = new JLabel("\u00A92013 CBS HA.IT (Gruppe XA-9)\t\t ");
		lblXA9.setForeground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setBackground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setHorizontalAlignment(SwingConstants.CENTER);
		lblXA9.setFont(new Font("Eurostile", Font.PLAIN, 11));
		lblXA9.setBounds(0, 423, 735, 50);
		add(lblXA9);
		
		lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon("/Users/martinotto-sidelmann/Desktop/Zombium.png"));
		lblLogo.setBounds(530, 12, 200, 70);
		add(lblLogo);

	}

	public JButton getBtn$100() {
		return btn$100;
	}

	public JButton getBtn$60() {
		return btn$60;
	}

	public JButton getBtn$40() {
		return btn$40;
	}

	public JButton getBtn$20() {
		return btn$20;
	}

	public JButton getBtn$200() {
		return btn$200;
	}

	public JButton getBtnCancelTransaction() {
		return btnCancelTransaction;
	}

	public void addActionListener(ActionListener l) {

		btn$20.addActionListener(l);
		btn$40.addActionListener(l);
		btn$60.addActionListener(l);
		btn$100.addActionListener(l);
		btn$200.addActionListener(l);
		btnCancelTransaction.addActionListener(l);

	}
}
